import createTable from "./createTable";
import { loadedDBReady } from "./dbReady";
import openDB from "./openDB"

const initDB = async () => {
	const dbLoaded = await openDB();
	if (!dbLoaded) return false;
	const tableLoaded = await createTable();
	if (!tableLoaded) return false;
	loadedDBReady();
	return true;
}

export default initDB;